<%--
Copyright (C) 2008 Jackson Harper (jackson@ximian.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
--%>

<%@ Control Language="C#" ClassName="TopTenControl" %>
<%@ Register Assembly="Gaia.WebWidgets" Namespace="Gaia.WebWidgets" TagPrefix="gaia" %>
<%@ Import Namespace="Grr.Model" %>

<script runat="server">

</script>

<table>
    <tr>
        <td>
            <gaia:Image ID="TopTenImage" runat="server" ImageUrl="~/media/top-ten.jpg" />
        </td>
    </tr>
    <tr>
        <td>
            <ol style="list-style-position:outside; padding-top:0px; margin-top:0px">
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="TopTenDataSource">
                    <ItemTemplate>
                        <li><a href="Grurrah.aspx?g=<%# GrurrahString.ToUriString (Container.DataItem.ToString ()) %>"><%# GrurrahString.ToDbString (Container.DataItem.ToString ()) %></a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ol>
            <asp:ObjectDataSource ID="TopTenDataSource" runat="server" SelectMethod="GetTenHighestRatedNames"
                TypeName="Grr.Model.Grurrah"></asp:ObjectDataSource>
        </td>
    </tr>
</table>
